  <div class="layui-card">
    <div class="layui-card-body">
<div class="layui-tab layui-tab-brief" lay-filter="user">
  <ul class="layui-tab-title" id="LAY_mine">
    <li{if $type eq 'follower'} class="layui-this"{/if}><a href="{:url('wendasns/user/index',['dispatch'=>'fans','type'=>'follower'])}">我的粉丝</a></li>
    <li{if $type eq 'following'} class="layui-this"{/if}><a href="{:url('wendasns/user/index',['dispatch'=>'fans','type'=>'following'])}">我的关注</a></li>
  </ul>
  <div class="layui-tab-content" style="padding: 5px 0;">
    <div class="layui-tab-item layui-show">
	{if $type eq 'following'}
   {volist name="logs" id="item"}
   <div class="list-item">
      <div class="portrait-de" style="display: inline-block;">{:portrait($item.userta.id)}</div>
      <div style="display: inline-block;"><a href="{:url('wendasns/home/index',['id'=>$item.userta.id],false)}" style="color: #000;" class="">{$item.userta.username}</a><p style="color: #999;font-size: 12px;line-height: normal;"><span>{$item.userta.datas.answer}回复 </span> · <span>{$item.userta.datas.praise}获赞 </span></p></div>
      <div style="display: inline-block;margin-left: 20px;"><a href="{:url('wendasns/common/follow')}" class="layui-btn layui-btn-xs layui-btn-primary J_req" data-json='{"uid":"{$item.userta.id}"}' data-click="follow">取消关注</a></div>
   </div>
    <hr class="layui-bg-gray">
    {/volist}
    {else}
    {volist name="logs" id="item"}
   <div class="list-item">
      <div class="portrait-de" style="display: inline-block;">{:portrait($item.users.id)}</div>
      <div style="display: inline-block;"><a href="{:url('wendasns/home/index',['id'=>$item.users.id],false)}" style="color: #000;" class="">{$item.users.username}</a><p style="color: #999;font-size: 12px;line-height: normal;"><span>{$item.users.datas.answer}回复 </span> · <span>{$item.users.datas.praise}获赞 </span></p></div>
      <div style="display: inline-block;margin-left: 20px;">{if $item.follow}<a href="javascript:;" class="layui-btn layui-btn-xs layui-btn-primary">已关注</a>{else}<a href="{:url('wendasns/common/follow')}" class="layui-btn layui-btn-xs layui-btn-primary J_req" data-json='{"uid":"{$item.users.id}"}' data-click="follow">关注</a>{/if}</div>
   </div>
    <hr class="layui-bg-gray">
    {/volist}
    {/if}
      <div class="pager">{$logs->render()|raw}</div>

    </div>
  </div>
</div>
  </div>
</div>